import request from '@/api/request'

export function getOauthCode() {
  return request({
    url: "/weixin?appid=wxee7ebdd886b8b2b6&redirect_uri=http://vue.tunnel.qydev.com&response_type=code&scope=snsapi_userinfo&state=STATE&connect_redirect=1#wechat_redirect",
    method: 'get'
  })

}


export function login(code){
  return request({
    url: "/wx/login?code="+code,
    method: 'get',
  })

}
